package com.zst.bluetooth.utils;

import android.app.Application;

import com.litesuits.orm.LiteOrm;

/**
 * Created by zhang on 2016/1/8 0008.
 */
public class App extends Application {
    private static LiteOrm liteOrm;

    @Override
    public void onCreate() {
        super.onCreate();
        //初始化第三方数据库框架
        if (null == liteOrm) {
            liteOrm = LiteOrm.newSingleInstance(getApplicationContext(), "blue.db");
        }
        liteOrm.setDebugged(true);
        BlueToothUtils.initBluetooth(getApplicationContext());
    }

    public static LiteOrm getOrm() {
        return liteOrm;
    }

}
